package cn.yedong.pet.domain;

import java.util.ArrayList;
import java.util.List;

import cn.yedong.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 实体类：
 */
@Data
public class PetType extends BaseDomain{

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long parentId;
    //用于封装当前菜单的子菜单
    @JsonInclude(JsonInclude.Include.NON_EMPTY)//部门树最后一级没有数据就不显示
    private List<PetType> children = new ArrayList<>();

}
